/*
 * Main.fx
 *
 * Created on 23.11.2009, 15:50:41
 */

package javafx179labs.usman.lab1;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.Polygon;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.Line;
import javafx.scene.transform.Shear;
import javafx.scene.shape.Arc;
import javafx.scene.shape.ArcType;
import javafx.scene.Group;
import javafx.scene.effect.DropShadow;
import javafx.scene.effect.Blend;
import javafx.scene.effect.BlendMode;
import javafx.scene.effect.Glow;
import javafx.scene.transform.Rotate;

/**
 * @author Alex
 */

Stage {
    title: "Лабораторная работа 1"
    width: 1000
    height: 600
    scene: Scene {
        content: [
            Text {transforms:Rotate { pivotX : .0, pivotY : 15.0, angle: 15.0 }


                    effect:Glow {
                            level: 1
                    }





                font : Font {
                    size : 20
                }
                x: 12
                y: 32
                content: "Усман Алексей   "
                "-179 "
           }
                                 Rectangle {
                   x: 0, y: 450
                   width: 1000, height: 200
                   fill: Color.BROWN
           }




           Group {effect:DropShadow {
                                            offsetX: 10
                                            offsetY: 10
                                            color: Color.BLACK
                                            radius: 10
                                    } 
                            content: [
                                    





                Polygon {effect:Blend {
                                mode: BlendMode.ADD
                                opacity : 0.2
                        }


                    points : [ 225,300, 375,300, 425,375, 175,375  ]
                    fill: Color.GREEN
            }
   Rectangle {




                    x: 125, y: 375
                    width: 350, height: 50
                    fill: Color.GREEN
            }
                      
            Ellipse {
                    centerX: 300, centerY: 450
                    radiusX: 200, radiusY: 48
                    fill: Color.GRAY
            }

         
            
            Rectangle {transforms:
                        Shear { x: 0.30, y : 0.0 }
                    x: 265, y: 300
                    width: 25, height: 25
                    fill: Color.BLACK
                            



            }
            Line {
                    startX: 50, startY: 425
                    endX: 200, endY: 175                   strokeWidth: 1
                    stroke: Color.BLACK
            }
                        Line {
                    startX:50, startY: 350
                    endX: 175, endY: 175
                    strokeWidth: 1
                    stroke: Color.BLACK
            }
            Polygon {
                    points : [ 375,300, 580,300, 580,325, 380,325 ]
                    fill: Color.GRAY
            }

                        Arc {
                    centerX: 225, centerY: 310

                    radiusX: 40, radiusY: 20
                    startAngle: 20, length: 20
                    type: ArcType.OPEN
                    fill: Color.GRAY

            }

           ] }
            Group {effect:DropShadow {
                            offsetX: 10
                            offsetY: 10
                            color: Color.BLACK
                            radius: 10
                    }


                    content: [


                            Polygon {
                                    points : [ 100,75,75,125,125,125]
                                    fill: Color.GREEN
                            }
                                                        Polygon {
                                    points : [ 100,120,60,175,140,175]
                                    fill: Color.GREEN
                            }
                                                        Polygon {
                                    points : [100,170,50,225,150,225]
                                    fill: Color. GREEN
                            }
                            Rectangle {
                                    x:75 , y: 225
                                    width: 45 , height: 30
                                    fill: Color.BROWN
                            }






                    ]
            }
















































































     ]



      }
}